This is the replication material for "State Mobilization and 
Political Attitudes: The Legacy of Maoist Rural Resettlement in 
Contemporary China" by Alexander Lee, Weihong Qi, and Dehua Sun.

1. Data Download: 

  There are two data sources for this study. 

  (a) China Family Panel Studies (CFPS): To comply with the data 
    user agreement 
    (https://www.isss.pku.edu.cn/cfps/en/data/DataUserAgreement/), 
    please download the CFPS datasets from its official website. 
    There are two equivalent ways:

    i. https://opendata.pku.edu.cn/dataverse/CFPS (Recommended 
      for naming consistency)

    ii. https://cfpsdata.pku.edu.cn/#/home

    Both sites require registration, and the approval process may 
    take one to several business days. After successful 
    registration, please select CFPS public data and download 
    years for 2010, 2012, 2014, and 2016 in Stata format. The 
    specific data files are:

    i. “ecfps2010adult_201906.dta”

    ii. “ecfps2012adult_201906.dta”

    iii. “ecfps2014adult_201906.dta”

    iv. “ecfps2016adult_201906.dta”

  (b) The China Survey: This dataset is included in the 
    replication materials as “china_survey.dta”. More information 
    about this dataset is available at: 
    https://hdl.handle.net/1969.1/195989. 

2. Data Analysis: 

  (a) Please install the required packages by running the 
    following commands:

    i. net install rdrobust, 
      from(https://raw.githubusercontent.com/rdpackages/rdrobust/master/stata) 
      replace

    ii. net install rddensity, 
      from(https://raw.githubusercontent.com/rdpackages/rddensity/master/stata) 
      replace

    iii. net install lpdensity, 
      from(https://raw.githubusercontent.com/nppackages/lpdensity/master/stata) 
      replace

    iv. ssc install coefplot, replace

    v. ssc install estout, replace

    vi. ssc install blindschemes

  (b) 0_table_path.do 

    i. Please change the directory to save tables and figures. 

  (c) 1_CFPS_dataset_making.do 

    i. Please change the working directory (line 8) and possibly 
      the name of the folder that contains the data files (line 
      15, 22, 29, 36).

  (d) 2_CFPS_results.do 

    i. Please change the working directory (line 8) to the 
      location that contains the newly generated dataset, 
      “merged_cfps_replication.dta”. 

    ii. This do file includes Table 1-3, B2, B3, B5, C1-4, D4-6, 
      D12-15.

  (e) 3_CFPS_robustness.do 

    i. This do file includes Table A1, A3, D1-3, 7-11, E1-2 2. 
      E1-3; Figure 1-3, A2, E1-3.

  (f) 11_China_Survey_cleaning.do 

    i. Please change the working directory (line 8).

  (g) 12_China_Survey_results.do 

    i. This do file includes: Table A2, A4-5, B1, B4, B6-8 , F1; 
      Figure F1.

